package org.seedltd.upms.model.sys.entity;

import org.seedltd.core.base.BaseEntity;
import org.seedltd.upms.enums.EnableStatus;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Getter;
import lombok.Setter;

/**
 * 部门表
 *
 * @author laizuan
 * @version 1.0
 * @since 2020/08/06
 */
@Getter
@Setter
@TableName("sys_dept")
public class SysDept extends BaseEntity {

    /**
     * 部门id
     */
    @TableId(value = "dept_id")
    private Long deptId;

    /**
     * 父部门id
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 部门名称
     */
    @TableField(value = "dept_name")
    private String deptName;

    /**
     * 部门代码
     */
    @TableField(value = "dept_code")
    private String deptCode;

    /**
     * 显示顺序
     */
    @TableField(value = "sort_no")
    private Integer sortNo;

    /**
     * 负责人
     */
    @TableField(value = "leader")
    private String leader;

    /**
     * 联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 部门状态（1正常 0停用）
     */
    @TableField(value = "enabled")
    private EnableStatus enabled;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

}